<template>
    <div>
        <table>
            <tr>
                <td>课程名字</td>
                <td>课程图片</td>
            </tr>
            <tr>
                <td>{{name}}</td>
                <td><van-image
        width="100"
        height="100"
        :src="url"
      /></td>
            </tr>
        </table>
    </div>
</template>

<script>
    export default {
        data(){
            return{
                name:"",
                url:''
            }
        },
        methods:{
            getUserinfo(){
                this.$axios.get('users/get?name='+this.name).then(res=>{
                    this.url = this.upload_dir+this.name+'/'+res.data.user.pic
                    this.name = res.data.dict.name
                })
                },
        }
    }
</script>

<style scoped>

</style>